<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%jzg_upload_image}}".
 *
 * @property int $id
 * @property string $source_path
 * @property string $url
 * @property int $created_at
 * @property int $updated_at
 * @property string $resp_status
 * @property string $resp_data
 */
class JzgUploadImage extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%jzg_upload_image}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['source_path', 'url', 'created_at', 'updated_at', 'resp_status', 'resp_data'], 'required'],
            [['source_path', 'url', 'resp_data'], 'string'],
            [['created_at', 'updated_at'], 'integer'],
            [['resp_status'], 'string', 'max' => 20],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'source_path' => Yii::t('app', 'Source Path'),
            'url' => Yii::t('app', 'Url'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'resp_status' => Yii::t('app', 'Resp Status'),
            'resp_data' => Yii::t('app', 'Resp Data'),
        ];
    }
}
